<script>
	export default {
		onLaunch: function() {
      uni.setEnableDebug({
        enableDebug: true
      })
			// console.log('App Launch')
		},
		onShow: function() {
			// console.log('App Show')
      if(!uni.getStorageSync('token') || uni.getStorageSync('token') == '') {
				console.log('login');
        uni.reLaunch({
          url: '/pages/login/login'
        })
      }
		},
		onHide: function() {
			// console.log('App Hide')
		}
	}
</script>

<style lang="scss">
/*每个页面公共css */
@import "uview-ui/index.scss";
view,
scroll-view {
  box-sizing: border-box;
}
.page {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(223, 238, 254, 1) 0%, rgba(255, 255, 255, 1) 100vh);
  background-attachment: fixed;
}
</style>
